export default function colums<T>(arr: T[], column_names: string[]) {
	return arr.map((it) => {
		return column_names.reduce((pre, field_name) => {
			pre[field_name] = it[field_name];
			return pre;
		}, {} as { [key: string]: any });
	});
}
